package com.crm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.crm.dao.BizProjectMapper;
import com.crm.model.BizProject;
import com.crm.service.BizProjectService;
import com.crm.util.UUIDUtil;

@Service
public class BizProjectServiceImpl extends BaseServiceImpl<BizProject> implements BizProjectService{
	@Autowired
	private BizProjectMapper bizProjectMapper;
	@Override
	public int insert(BizProject record) {
		
		String uuid = UUIDUtil.getUUID();
		record.setProjectId(uuid);
		
		return super.insert(record);
	}

	@Override
	public List<BizProject> selectAllBycode(BizProject t) {
		
		List<BizProject> list = bizProjectMapper.selectAllByCode(t);
		
		return list;
	}
}
